package games.tanchishe;

import javax.swing.*;
import java.awt.*;

public class HeaderPanel extends JPanel {


    @Override
    protected void paintComponent(Graphics g) {
        // 清屏
        super.paintComponent(g);
        //
        g.setColor(Color.darkGray);
        // 填充顶部panel
        g.fillRect(0, 0, this.getSize().width, 100);
    }
}
